package com.cwnu.sw.cys.core.websocket.domain.vo.resp;

import com.cwnu.sw.cys.core.websocket.domain.enums.WSRespTypeEnum;
import lombok.Data;

/**
 * WebSocket 基础响应类
 * 用于封装WebSocket响应消息的共通结构
 *
 * @param <T> the type parameter, represents the data type of the resp
 */
@Data
public class WSBaseResp<T>{
    /**
     * 响应类型
     * 参见 {@link WSRespTypeEnum} for possible values and their meanings
     */
    private Integer type;

    /**
     * 响应数据
     * The specific content of the resp, its type is generic
     */
    private T data;
}
